package day02.work02;

public class Floater extends Employee{
    private int time;

    public Floater(){}
    public Floater(String name,String sex,String birthday,int time){
        super(name,sex,birthday);
        this.time=time;
    }
    public int getTime() {
        return time;
    }
    public void setTime(int time) {
        this.time = time;
    }

    public void computeSalary(){
        int k=50*time;
        System.out.println(super.getName()+"临时工的工资为："+k);
    }
}
